package com.he.service;

import com.he.mapper.TeacherMapper;
import com.he.pojo.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl implements TeacherService{

    @Autowired
    TeacherMapper teacherMapper;

    @Override
    public Teacher queryTeacherByName(String name) {
        Teacher teacher = teacherMapper.queryTeacherByName(name);
        return teacher;
    }
}
